//package com.yiwei.zhh.adapter;
//
//import android.content.Context;
//import android.support.v7.widget.RecyclerView;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.ImageView;
//import android.widget.RelativeLayout;
//import android.widget.TextView;
//
//import com.yiwei.zhh.R;
//import com.yiwei.zhh.api.bean.BankSupportBean;
//
//import java.util.List;
//
//import butterknife.BindView;
//import butterknife.ButterKnife;
//
//
///**
// * Created by zhangxutong .
// * Date: 16/08/28
// */
//
//public class BankSupportAdapter extends RecyclerView.Adapter<BankSupportAdapter.DefaultHolder> {
//    protected Context mContext;
//    protected List<BankSupportBean> mDatas;
//    protected LayoutInflater mInflater;
//
//
//    public BankSupportAdapter(Context mContext, List<BankSupportBean> mDatas) {
//        this.mContext = mContext;
//        this.mDatas = mDatas;
//        mInflater = LayoutInflater.from(mContext);
//    }
//
//    public List<BankSupportBean> getDatas() {
//        return mDatas;
//    }
//
//    public BankSupportAdapter setDatas(List<BankSupportBean> datas) {
//        mDatas = datas;
//        return this;
//    }
//
//    @Override
//    public DefaultHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//        return new DefaultHolder(mInflater.inflate(R.layout.item_bank_support, parent, false));
//    }
//
//    @Override
//    public void onBindViewHolder(final DefaultHolder holder, final int position) {
//        final BankSupportBean cityBean = mDatas.get(position);
////        holder.tvCity.setText(cityBean.getCity());
//
//    }
//
//    private OnChooseListener onChooseListener;
//
//    public void setOnChooseListener(OnChooseListener onChooseListener) {
//        this.onChooseListener = onChooseListener;
//    }
//
//    public interface OnChooseListener {
//        void onClick(String id, String name);
//    }
//
//
//    @Override
//    public int getItemCount() {
//        return mDatas != null ? mDatas.size() : 0;
//    }
//
//
//    class DefaultHolder extends RecyclerView.ViewHolder {
//        @BindView(R.id.img_icon)
//        ImageView imgIcon;
//        @BindView(R.id.txt_name)
//        TextView txtName;
//        @BindView(R.id.txt_single_money)
//        TextView txtSingleMoney;
//        @BindView(R.id.view_center)
//        View viewCenter;
//        @BindView(R.id.txt_type)
//        TextView txtType;
//        @BindView(R.id.txt_single_day)
//        TextView txtSingleDay;
//        @BindView(R.id.content)
//        RelativeLayout content;
//        public DefaultHolder(View itemView) {
//            super(itemView);
//            ButterKnife.bind(this, itemView);
//        }
//    }
//}
